package com.ylb.rent.config;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/6/30 16:17
 */
@Component
@Data
@NoArgsConstructor
@ConfigurationProperties("alipay")
public class AliPayConfigBean {

    //        应用编号
    String appId="9021000122699186";
    //    应用私钥
    String privateKey="MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDP5sVH/CH4absTQWlID64c5tWGo9WdTSoNoC5qk8qRQPxKUNAWkuZJCUZLftcxmebtgZGgG3bd9jjIBiEq6/FOoj43sK2NUO+wybLk7BHprNPWwa4nPLNRHoE29OucbKRNbW5n1e1tzijV41n1/odfBxiOeA/EodQdbEp0bRMwYaFlux52gAo5xz2GbWYFUt5Zf2jYXcrzc5Mh9yxbxdJqD5o43D4/IfvykMj9eCNVfhT+BYBN8rJVtUCLcwBtAvVvijKZOLW0nQQ0geEIU42aLl0Py9fWLN65H7FEXapSA7cQlpUAEVn6suALoAh9vQkllamiQDs4/zWZx1W58VF5AgMBAAECggEBAJx9Be4jOKa1Xx0lVUvqkZIrpnnMBFR86rSK56VNTWJ8WerOXXNAa5p6IrFc7jnlsE8CAk1TnuuAFElrY7fdFSutL8vXbys5ytF1YPSzROBxOJsj+iSKqibbIUPuoxKBLEMjpcD+49KNJWupz+M8DUVYIAHNGYFWlkT3aCuulo0I88M+g4Crt+oCtZZ8KkYefecvmG3H8+ehDuyHUGFEYNpvmlfXAD/i3uvzwlQWJIO2AaMct/MyrFvfLzRYj/KDNuAhu+kkfC/JvkE1nIE0KM6kzTVGxPFEnC1/CKVwJxNOoI2WalJIqbra8vCxj6d1UVwEB1ZTFJXdXjT1N7/HNwECgYEA9zXuh2Lk/2qp7DSgzA72dTVhYAd2UXpDueIQU4fnAgbeRU/J4ho2Lb2aULxtjSLSiZOdWgc16fHp9vUzNLI40Hx14zWI773FpOogqtwrI1yORwXs9P+DAlwPvdzYn8JDYlJKXWCe9FP1+D1RSJ/W9Hyyc6y1X8OWqCawbAU9kwkCgYEA10sNnx/mBIVOPykKt11j34bLOMVHE+04U1HzIY+qXi6mxFUvAXfNeT/2CEkNMvmFKogRgoQAfOESa4oQvEz+Yqq75qD5GDeOIyDihqscf/BwKqlQbp0H40PbCZpPjiEp6wqsHtV++fiK09ahCHPptYn2CApPDFwlXk5cZa3GNvECgYBkYuUy2yjsw26vOYvWcXkJjZy2NzGH0qNv92nz0aswOoPGF6l+hHBd0LG6eVnvRyXBskzigy0UjCUbIOUjUAAcQX5JvrKV0DVTS7PqTi/CU1J/atuXfa7ApYvK6MSa03MzmQETvCmwQ+wNWzEH0cijTYPVz1tzwOQL8nIP22zuqQKBgFfwFxtE+z4jeSeBSxhEtDOsKjwBEJxKC/S0h3vQ48Teh02wgae22J3LC2Ks/BAzLTqHI6fM5SodANoeJeHUDSAeHuwAGl7S6mLc3solAFodyqMST4Eu8PbaU5CjkBU85JNV46IgkGHoLESE6Xe7aN23AWCdXVZuGPFhTopVpZ3xAoGBAKB7roe8XHRGURX44YY2p5MZcchaA4k7wE+xEz19RjlE3nda4kXWMNit3XoX8GomMp2aKyM08Z7UzeXttw01V6fwjuj9ZfWfOQQKU7sJecBYanVm3VrGRPVidXtL30my8TNDmfMzjUOR30v8I+qs4mCUUKtrHL4dIrwM5A6eZivz";
    //        支付宝公钥，通过应用公钥上传到支付宝开放平台换取支付宝公钥(如果是证书模式，公钥与私钥在CSR目录)。
    String publicKey="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl7HXyEarcYqnQcNqdBhoQtx6XUgRu+58mD5KZsrqpKC65hO214jgBy29stpDvRgCD77t2ivNmLI8YaP48rgz0AVWRcrnh/oLENs1oBA09Flnq4E3TUVeeCWfChL4+K/maZXTERyMrrumkcYb8oIt6AN3nSteivMl/D4KmPD0aSQrqhMddDpAV2B9iOy7jcTc4+QKLqAY8jWZ1BJ4T7YcMj9W9RpVgU6+bbciU4tm8UotEdCD7dPmd66FMM7exadbJrF+CVyPliq4FHKpy42R55vZJ64vvXzAHkaZ9lJ4nLOXfX/YkmRBFnXnpjz/GLz3zkV4yhQu0hoeIjrwNB3GsQIDAQAB";
    //    应用公钥证书 (证书模式必须)
    String appCertPath;
    //    支付宝公钥证书 (证书模式必须)
    String aliPayCertPath;
    //    支付宝根证书 (证书模式必须)
    String aliPayRootCertPath;
    //    支付宝支付网关
    String serverUrl="https://openapi-sandbox.dl.alipaydev.com/gateway.do";
    //    外网访问项目的域名，支付通知中会使用
    String domain="localhost:8081";

    String notifyUrl = "/order/notify";

    String returnUrl = "/order/return";

}
